<?php

namespace Controller\Cms;

class About extends \Controller\Base {

	public function actionIndex() {
		$this->setMenuPath('Cms', 'About');
		if ($this->isPost()) {
			$content = $this->postParam('content');
			\Data\Cms::instance()->saveAbout($content);
			$this->addSuccessMsg('关于我们保存成功');
		}
		$content = \Data\Cms::instance()->getAbout();
		$this->assign('content', $content);
		$this->display();
	}

}